package com.umiwe.permission.mapper;

import com.umiwe.entity.UmiweRolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserPermissionMapper {
    @Select("select * from umiwe_role_permission where role_id in (select role_id from umiwe_user_role where user_id=(select id from umiwe_user where id=#{id})) and status=#{status}")
    List<UmiweRolePermission> UserPermissionList(Integer id, Integer status);
}
